package com.petRescueCenter.demo.user.entity.dto;

import com.petRescueCenter.demo.common.enumPackage.SexEmun;
import com.petRescueCenter.demo.user.entity.User;

public class UserChangeDTO {
	private String introduce;
	private SexEmun sex;
	private String name;
	private String tel;

	public String getIntroduce() {
		return introduce;
	}

	public SexEmun getSex() {
		return sex;
	}

	public String getName() {
		return name;
	}

	public String getTel() {
		return tel;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	public void setSex(SexEmun sex) {
		this.sex = sex;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public static User userChangeToE(User entity, UserChangeDTO dto) {
		entity.setIntroduce(dto.getIntroduce());
		entity.setName(dto.getName());
		entity.setSex(dto.getSex());
		entity.setTel(dto.getTel());
		return entity;
	}

}
